package cn.laowen.basic.query;

import lombok.Data;

@Data
public class BasicQuery {
    //每页展示条数
    private Integer pageSize = 5;
    //页码
    private Integer currentPage = 1;
    //关键字查询
    private String keyword;


    /**
     * 计算起始页位置
     * @return
     */
    public Integer getStart() {
        return (this.currentPage - 1) * pageSize;
    }
}
